<?php

	class Country extends Country_model {

		function __construct() {
			parent::__construct();
		}
                
                function getCountriesList() {
                    $country = new Country();
                    $country->addJoin(new Region());
                    $country->addSelect();
                    $country->addSelect('country.*,region.code,region.name');
                    $country->addWhere('country.is_deleted = 0');
                    $country->orderBy('region.ordered, country.name');
                    $country->find();
                }
	}
